package jiguang.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.jiuyin.dianjing.R;

import cn.jpush.im.android.api.JMessageClient;
import cn.jpush.im.android.api.model.UserInfo;
import jiguang.entity.InfoModel;
import jiguang.ui.activity.base.BaseActivity;
import jiguang.ui.fragment.HomePageFragment;


/**
 * Created by ${chenyn} on 2017/3/14.
 */

public class SearchFriendInfoActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search_friend_info);

        initView();
        initData();
    }

    private void initView() {
        initTitle(true, true, "详细资料", "", false, "保存");
        findViewById(R.id.btn_addFriend).setOnClickListener(this);
    }

    private void initData() {
        InfoModel instance = InfoModel.getInstance();
        HomePageFragment homePageFragment = HomePageFragment.newInstance(instance.getUserName());
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.layout_fragment, homePageFragment)
                .commit();
    }

    @Override
    public void onClick(View v) {
        Intent intent;
        switch (v.getId()) {
            case R.id.btn_addFriend:
                //添加好友界面
                intent = new Intent(SearchFriendInfoActivity.this, VerificationActivity.class);
                startActivity(intent);
                break;
            default:
                break;
        }

    }
}
